# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=pencil2d
pkgver=0.6.6
pkgrel=1
pkgdesc="Easy, intuitive tool to make 2D hand-drawn animations"
arch=(loong64 x86_64)
url="https://www.pencil2d.org/"
license=(GPL2)
depends=(ffmpeg hicolor-icon-theme qt5-multimedia qt5-svg qt5-xmlpatterns)
source=("$pkgname-$pkgver.tar.gz::https://github.com/pencil2d/pencil/archive/v${pkgver}.tar.gz")
sha256sums=('9dd1f7dd35a86dea33ec4415ac92e7df146309a1f52139c908cbd8b4767e53ff')

build() {
  cd pencil-$pkgver
  qmake PREFIX=/usr
  make
}

package() {
  cd pencil-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
